package com.bobo.nutzbook.bean;

import lombok.Data;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;

@Data
@Table("t_user")
public class User extends BasePojo {
	
	@Id
	private int id;
	@Column("name")
    private String name;
	@Column("password")
    private String password;
	@Column("salt")
    private String salt;
	
	@One(target=UserProfile.class, field="id", key="userId")
	private UserProfile profile;
}
